import Vue from 'vue'
import 'normalize.css/normalize.css' // a modern alternative to CSS resets
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/styles/index.scss' // global css
import VueJsonp from 'vue-jsonp'
import * as filters from './assets/js/filters/filters'
import clipboard from 'vue-clipboard2'

Vue.use(VueJsonp);

Vue.use(clipboard);

import App from './App'
import store from './store'
import router from './router'

import './icons' // icon
import './permission' // permission control

//水印
import watermark from './assets/watermark'
Vue.prototype.$watermark = watermark;

//加密
import EncryUtil from '@/utils/encrypt.js';
Vue.prototype.EncryUtil = EncryUtil;


Vue.use(Element)

Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
